package com.braveman.im.ui.adapter;

import android.support.annotation.LayoutRes;
import android.support.annotation.Nullable;
import android.widget.TextView;

import com.braveman.im.R;
import com.braveman.im.bean.DataListBean;
import com.braveman.im.bean.FriendGroupNameBean;
import com.bumptech.glide.Glide;
import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.BaseViewHolder;
import com.qmuiteam.qmui.widget.QMUIRadiusImageView;

import java.util.List;

/**
 * 作者：qu zhao xin
 * 邮箱：qu15264880529@163.com
 * 手机号：15264880529
 * 时间：17/10/28 10:35
 */

public class FriendsGroupNameAdapter extends BaseQuickAdapter<FriendGroupNameBean, BaseViewHolder> {


    public FriendsGroupNameAdapter(@LayoutRes int layoutResId, @Nullable List<FriendGroupNameBean> data) {
        super(R.layout.item_friends_group_name_list, data);
    }

    @Override
    protected void convert(BaseViewHolder helper, FriendGroupNameBean item) {
        helper.setText(R.id.name, item.name).setChecked(R.id.name, item.isChecked).addOnClickListener(R.id.name);
    }
}
